package com.jswlw.controller.admin.biz;

import com.github.pagehelper.Page;
import com.jswlw.controller.BaseController;
import com.jswlw.entity.biz.ImeiIcCid;
import com.jswlw.service.biz.ImeiIcCidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@Controller
@RequestMapping("/admin/biz/imeiIcCid")
public class ImeiIcCidController extends BaseController {

    @Autowired
    ImeiIcCidService service;

    @RequestMapping("/index")
    public String index(Model model) {
        return "biz/imeiIcCid/index";
    }

    /**
     * 广告列表
     *
     * @param
     * @return
     */
    @RequestMapping("/list")
    @ResponseBody
    public Object list(@RequestBody ImeiIcCid imeiIcCid) {
        Page<ImeiIcCid> page = service.queryPage(imeiIcCid);
        return pageResult(page.getResult(), page.getTotal());
    }
}
